package com.xiao.mybatisplus.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiao.mybatisplus.entity.User;
import com.xiao.mybatisplus.mapper.UserMapper;
import com.xiao.mybatisplus.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

//    @Resource
//    UserMapper userMapper;

    @Override
    public List<User> selectAllByName( String name ) {
        return baseMapper.selectByUserName(name);
    }
}
